Skip to content

Conversation

@nestorsalceda
Copy link
Contributor

The UI is using sampling for aggregating several events, and I would like to keep this consistency when using the API.

I have added a sampling parameter to context, and I use its value for building the URL.

Thanks!

When sampling parameter is present in context and has a value, use it for
building the URL
With sampling support I'm able to keep consistency with UI policy event
timeline.
 This is the same case that get_policy_events_duration: With sampling
 I'm able to keep consistency with UI policy event timeline.
@nestorsalceda
Copy link
Contributor Author

It looks like build is failing because PYTHON_SDC_TEST_ACCESS_KEY is not set, but I'm not quite sure how to fix this.

@davideschiera
Copy link
Contributor

@nestorsalceda thanks for the contribution! Changes make sense, we're trying to understand the problem with the build, it seems fairly unrelated with your changes...

@mstemm
Copy link
Contributor

mstemm commented Apr 13, 2018

The travis failure is because the tests depend on credentials that access our staging environment to test the various APIs. Your fork of the repo doesn't have those credentials, so it couldn't run the tests. However, I did run the two tests by hand using your fork and they passed, so I'll go ahead and merge.

Thanks so much for the contribution!

@mstemm mstemm merged commit 0c4f1a3 into sysdiglabs:master Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants